package com.ny007;

import java.util.Scanner;

public class TestPay {
    public static void main(String[] args) {
        double money = 95;
        System.out.println("支付金额："+money);
        System.out.println("支付方式：1.银行卡支付  2.微信支付");
        Scanner scanner = new Scanner(System.in);
        switch (scanner.nextInt()){
            case 1:
                Pay bankPay =new BankPay();
                bankPay.pay(money);
                break;
            case 2:
                Pay weixin=new WeiXin();
                weixin.pay(money);
                break;
        }
    }
}
